using System;
using CodingDay.Rx.Shared.Domain;

namespace CodingDay.Rx.Shared.Events
{
    public delegate void DTOReceived(object sender, DTOReceivedArgs args);

    public class DTOReceivedArgs : EventArgs
    {
        public DTOReceivedArgs(string host, string port, DTO data)
        {
            Source = String.Format("{0}:{1}", host, port);
            Data = data;
        }

        public string Source { get; private set; }
        public DTO Data { get; private set; }
    }
}